package com.pine.sunshineelder.eldernurselevel.service;

import java.util.Map;

import com.pine.sunshineelder.common.dto.QueryResult;
import com.pine.sunshineelder.common.entity.NurseLevelEntity;
import com.pine.sunshineelder.eldernurselevel.ao.LevelAddAo;
import com.pine.sunshineelder.eldernurselevel.ao.LevelModAo;
/**
 * 
 * @author 陈玉持
 *
 */
public interface NurseLevelService {
	/**
	 * 新增护理等级
	 * @param ao
	 * @return
	 * @throws Exception
	 */
	NurseLevelEntity updaterLevel(LevelAddAo ao)throws Exception;
	/**
	 * 弃用等级(改变状态)
	 * @param id
	 * @throws Exception
	 */
	void deleteLevel(String id)throws Exception;
	/**
	 * 启用等级
	 * @param id
	 * @throws Exception
	 */
	void onDeleteLevel(String id)throws Exception;
	/**
	 * 修改记录(全部修改)
	 * @param id
	 * @param ao
	 * @return
	 * @throws Exception
	 */
	NurseLevelEntity modeifLevel(String id,LevelModAo ao)throws Exception;
	
	/**
	 * 修改记录
	 * @param id
	 * @param ao
	 * @return
	 * @throws Exception
	 */
	NurseLevelEntity modeifLevel(String id,Map<String, String> map)throws Exception;
	/**
	 * 查询全部等级
	 * @return
	 * @throws Exception
	 */
	QueryResult queryByKey(String key, Integer pageNo, Integer pageSize)throws Exception;
	
}
